package com.lzhsite.technology.designPattern.strategy.LogTemplateDemo;

public class DBLog extends LogStrategyTemplate {
	protected void doLog(String logMessage) {
		if (logMessage != null && logMessage.trim().length() > 5) {
			int a = 5 / 0;
		}
		System.out.println("现在把 '" + logMessage + "' 记录到数据库中");
	}
}
